import request from '@/utils/request'

/**
 * 查询-分页查询灯箱看板
 * @param getLookPlate
 */
export function getLookPlate(data) {
  return request({
    url: `andon/lookPlate/list`,
    method: 'post',
    data
  })
}

/**
 * 查询-查询安灯看板异常数据信息
 * @param getLookPlateDetails
 */
export function getLookPlateDetails(data) {
  return request({
    url: `andon/lookPlate/` + data,
    method: 'get'
  })
}

export function uploadPicture(data) {
  return request({
    url: `/andon/trigger/uploadPicture`,
    headers: { 'Content-Type': 'multipart/form-data' },
    method: 'post',
    data: data
  })
}

/**
 * 更新-安灯修复
 * @param putLookPlate
 */
export function putLookPlate(data) {
  return request({
    url: `andon/lookPlate/andonRepair`,
    method: 'put',
    data
  })
}
